<include file="public@header"/>
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInUp js-check-wrap">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>转账记录</h5>
                        <div class="ibox-tools">
                            <a href="#" class="btn btn-primary btn-xs active">转账记录</a>
                        </div>
                    </div>
<div class="ibox-content">
    <form class="well form-inline margin-top-20" method="post" action="{:url('TransferLog/index')}">

        币种：
        <input class="form-control" type="text" name="coin_symbol" style="width: 200px;" value="{:input('request.coin_symbol')}"
                placeholder="请输入币种名称">

        开始时间：
        <input class="form-control js-bootstrap-datetime" type="text" name="start_time" style="width: 200px;" value="{:input('request.start_time')}"
                placeholder="请输入开始时间">

        结束时间：
        <input class="form-control js-bootstrap-datetime" type="text" name="end_time" style="width: 200px;" value="{:input('request.end_time')}"
                placeholder="请输入结束时间">

                
        用户：
        <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
                placeholder="请输入用户ID,如:800001">
        操作类型：
                <select class="form-control"  name="type" >
                        <option value="">--------- </option>
                    <volist name="type_sql" id="vo">
                        <option value="{$vo}" <eq name="vo" value=":input('request.type')">selected </eq> >{$type_arr[$vo]}</option>
                    </volist>
                </select>
        钱包类型：
                <select class="form-control"  name="wallet_type" >
                    <foreach name="wallet_type_sql" item="vo">
                        <option value="{$vo}" <eq name="vo" value=":input('request.wallet_type')">selected </eq> >{$wallet_type_arr[$vo]}</option>
                    </foreach>
                </select>

        状态：
                <select class="form-control"  name="transfer_status" >
                    <foreach name="transfer_status_sql" item="vo">
                        <option value="{$vo}" 
                       <neq name=":input('request.transfer_status')" value="">
                        <eq name="vo" value=":input('request.transfer_status')">selected</eq> 
                       </neq> 
                       <eq name=":input('request.transfer_status')" value="0">
                        <eq name="vo" value=":input('request.transfer_status')">selected</eq> 
                       </eq> 
                        >{$transfer_status_arr[$vo]}</option>
                    </foreach>
                </select>

        <br>
        <br>
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('TransferLog/index')}">清空</a>

        <br><br>当前检索结果 总数量: <span style="color:red">{$total_amount}</span> 总手续费: <span style="color:red">{$total_fee}</span>

    </form>

        <table class="table table-hover" id="menus-table">
            <thead>
                <tr>
                    <th width="60">ID</th>
                    <th width="100">发送用户ID</th>
                    <th>发送用户</th>


                    <th>操作类型</th>
                    <th>钱包类型</th>
                    
                    <th>币种名称</th>
                    <th>from address/to address</th>
                    <th>转账金额</th>
                    <th>转账后余额</th>
                    <th>转账手续费</th>
                    <th>转账时间</th>
                    <th>链上交易ID</th>
                    <th>备注</th>
                    <th>关联ID</th>
                    <th>状态</th>
                </tr>
            </thead>
            <tbody>
                <eq name="datas" value="">
                        <tr> 
                            <td colspan="5" style="text-align: center">暂无数据</td>
                        </tr>
                <else />
                    <foreach name="datas" item="vo">
                        <tr>
                            <td> {$vo.id} </td>
                            <td> {$vo.uid} </td>
                            <td>{$vo.uname} </td>
                    
                            <td>{$type_arr[$vo.type]}</td>
                            <td>{$wallet_type_arr[$vo.wallet_type]}</td>
                            <td>{$vo.coin_symbol}</td>
                            <td>{$vo.from_address}<br>/{$vo.to_address}</td>
                            <td>{$vo.amount|floatval}</td>
                            <td>{$vo.amount_after|floatval}</td>
                            <td>{$vo.fee|floatval}</td>

                            <td>{$vo.log_time|date="Y-m-d H:i",###}</td>
                            <td>{$vo.tx_id}</td>
                            <td>{$vo.memo}</td>
                            <td>{$vo.related_id}</td>
                            <td>{$transfer_status_arr[$vo.transfer_status]}</td>
                    
                        </tr>
                    </foreach>
            </eq>
            </tbody>
        </table>




    
    <div class="pagination">
            <div>
                当前共有数据 <span style="color:blue;font-weight:bold">{$num}</span> 条
            </div>
            {$page|default=''}
        
    </div>
</div>

                    </div>
                </div>
        </div>
    </div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>